<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../webapp/js/angular.min.js" ></script>
	</head>
	<body>
		<!--
        	ng-app="myapp" 定义一个模块
        -->
		<div ng-app="myapp" ng-controller="myctr">
			<div>
				<input type="text" name="name" ng-model="name" />
			</div>
			<div>
				hello,{{name}}
			</div>
		</div>
		<script type="text/javascript">
		var myapp = angular.module("myapp",[]);
		myapp.controller("myctr",["$scope",function($scope){
			$scope.name="黑马程序员";
		}]);
	</script>
	</body>
	
</html>
